	<div class="title"><h5>Create post </h5></div>

    <fieldset>
    <script type="text/javascript" src="{{ asset('bundles/news/js/nicEdit-latest.js') }}"></script>
    <div class="widget">    
	 <div class="head"><h5 class="iHome">Create content translated </h5></div>
	 {% if status_form==1 %}
	 <div class="nNote nInformation hideit">
                <p><strong>SUCCESS: </strong> The news has been completed</p>
         </div>
	
	{% elseif status_form==2 %}
	<div class="nNote nFailure hideit">
		<p><strong>FAILURE: </strong>Oops sorry. Something went wrong, try again.</p>
	</div>
         {% elseif status_form==3 %}
	<div class="nNote nSuccess hideit">
		 <p><strong>SUCCESS: </strong> All content has been created.</p>
	</div>
	 {% endif %}
</fieldset>	
<script>
$( "#valid2" ).submit(function( event ) {
 console.log("create");  
 var action= '{{path('em_news_save')}}';
 var datos = $(this).serialize(); 
// datos=datos.replace(/%5B/g,"_");
 //datos=datos.replace(/%5D/g,"");
 console.log(datos);  
 $.ajax({type: 'POST', url:action, script:true, cache:true,data: datos,
                   // beforeSend: function(response){ $('#formcontent').html('<div align="center"><img src="{{asset('bundles/news/images/loaders/loader8.gif')}}" alt="" class="p12"><br>Loading data...</div>');},
                    error: function(response){console.log(response);},
                    success: function(response) {
			if (response === "false"){

			}else{
                       // console.log(response);
                        $('#formcontent').html(response);
                        
			}
                } });
        return false;
 
 
});
</script>
